package com.yc;

import dev.langchain4j.model.openai.OpenAiChatModel;

public class _01_HelloWorld {
    public static void main(String[] args) {
        String apiKey=System.getenv("DEEPSEEK_API_KEY");
        OpenAiChatModel model = OpenAiChatModel.builder()
                .apiKey(apiKey)
                .modelName("deepseek-chat")
                .baseUrl("https://api.deepseek.com")
                .logRequests(true)
                .logResponses(true)
                .build();
        String answer = model.chat("你好");
        System.out.println(answer);
    }
}
